#include "stdafx.h"
#include "RoleActor.h"
#include "RoleEvent.h"


CRoleActor::CRoleActor(const char * szName, CSimpleActor * pParent)
    : CRole(szName), CSimpleActor(pParent)
{ 
}


CRoleActor::~CRoleActor(void)
{
}

bool CRoleActor::_Receive( TEvent event )
{
	if (event->GetExecutorType() == e_Role)
	{
		return ((IRoleEvent *)event.get())->Execute(*this);
	}
    return false;
}

bool CRoleActor::_Init()
{
    return true;
}
